# 字典测试
emp_dict={
    "王力宏":{"部门":"科技部","工资":3000,"级别":1},
    "周杰轮":{"部门":"市场部","工资":5000,"级别":2},
    "林俊杰":{"部门":"市场部","工资":7000,"级别":3},
    "张学友":{"部门":"科技部","工资":4000,"级别":1},
    "刘德华":{"部门":"市场部","工资":6000,"级别":2},
}

for emp_name in emp_dict:
    emp=emp_dict[emp_name]
    if emp["级别"]==1:
        emp["级别"]+=1
        emp["工资"]+=1000

for emp_name in emp_dict:
    print(emp_name,emp_dict[emp_name])